package io.tij;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.List;

import util.Constants;


public class RecoverCADState {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws FileNotFoundException 
	 * @throws ClassNotFoundException 
	 */
	public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {
		ObjectInputStream in = new ObjectInputStream(new FileInputStream(
				Constants.IO_FILE_BASE_PATH +  "CADState.out"));
		// Read in the same order they were written:
		List<Class<? extends Shape>> shapeTypes = (List<Class<? extends Shape>>) in
				.readObject();
		Line.deserializeStaticState(in);
		List<Shape> shapes = (List<Shape>) in.readObject();
		System.out.println(shapes);
	}

}
